package common

import (
	"github.com/jinzhu/gorm"
	"managementsystem/pkg/utils"
)

func DeleteInfo(db *gorm.DB,data utils.S) {

	err := db.Table("s").Where("sno=?",data.Sno).Delete("s").Error
	utils.ErrCheck(err)
}
